package com.file.upload.repository;

import com.file.upload.entity.FileInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @Description
 * @Author lhj
 * @Date 2025/4/23 21:25
 */
@Repository
public interface FileInfoRepository extends JpaRepository<FileInfo, Long> {
    Optional<FileInfo> findByFileMd5(String fileMd5);
    Optional<FileInfo> findByFileId(String fileId);
}